#include "mytree.h"

#include <QKeyEvent>

void MyTree::keyPressEvent(QKeyEvent *event){
	if(event->key()==Qt::Key_Delete && event->type()==QEvent::KeyPress){
		emit rm();
	}
	else{
		QTreeWidget::keyPressEvent(event);
	}
}
